#include <bits/stdc++.h>

using namespace std;
vector<int> bigMulti(vector<int> A,int  B){
    vector<int> res;
    int t = 0;
    for(int i=0;i<A.size()||t!=0;i++){
        if (i<A.size()) t+=A[i]*B;
        res.push_back(t%10);
        t/=10; 
    }
     while (res.size() > 1 && res.back() == 0) res.pop_back();
    return res;
}
int main()
{
    string a;int b;cin>>a>>b;
    vector<int> A;
    for(int i=a.size()-1;i>=0;i--) A.push_back(a[i]-'0');
   
    vector<int> res = bigMulti(A,b);
    for(int i = res.size()-1;i>=0;i--){
        cout<<res[i];
    }
        return 0;
}
